package com.example.test.主方法运行测试;

public class HeCha {

    public static void main(String[] args) {

        int count = 20;
        int cha = 6;
        get(count, cha);

    }

    private static void get(int count, int cha) {
        int a = count;
        for (int i = count; i > 0; i--) {
            a = i;
            if (a == count - a + cha) {
                System.out.println(a);
                System.out.println(count - a);
            }
        }
    }
}
